<template>
  <div class="cell">
    <div class="body">
      {{label}}
    </div>
    <div class="right">
      <slot></slot>
      <span class="glyphicon glyphicon-menu-right"></span>
    </div>
  </div>
</template>
<script>
export default {
  name: "Cell",
  props: {
    label: String
  }
};
</script>
<style scoped lang="less">
.cell {
  display: flex;
  height: 50px;
  padding: 0 15px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
  background-color: white;
  .body {
    flex: 1;
    display: flex;
    height: 100%;
    align-items: center;
  }
  .right {
    display: flex;
    height: 100%;
    justify-content: flex-end;
    align-items: center;
    color: #999;
    span {
      font-size: 18px;
      margin-left: 2px;
      color: #bbb;
    }
  }
}
</style>
